package org.example.pojo;

public class Major extends Department {
    private int majorno = 0;
    private String majorname = "";

    public Major() {
    }

    public Major(int departno, String name, int majorno, String majorname) {
        super(departno, name);
        this.majorno = majorno;
        this.majorname = majorname;
    }

    public int getMajorno() {
        return majorno;
    }

    public void setMajorno(int majorno) {
        this.majorno = majorno;
    }

    public String getMajorname() {
        return majorname;
    }

    public void setMajorname(String majorname) {
        this.majorname = majorname;
    }

    @Override
    public String toString() {
        return "Major{" +
                "majorno=" + majorno +
                ", majorname='" + majorname + '\'' +
                "} " + super.toString();
    }
}
